<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="rapid" uri="http://www.rapid-framework.org.cn/rapid" %>
<rapid:override name="title">
    - 应用参数
</rapid:override>
<rapid:override name="header-style">
    <style>
        /*覆盖 layui*/
        .layui-input {
            display: inline-block;
            width: 33.333% !important;
        }

        .layui-input-block {
            margin: 0px 10px;
        }


    </style>
</rapid:override>

<rapid:override name="content">
    <blockquote class="layui-elem-quote">
        <span class="layui-breadcrumb" lay-separator="/">
          <a href="/admin">首页</a>
          <a><cite>应用参数</cite></a>
        </span>
    </blockquote>

    <div class="layui-tab layui-tab-card">
        <form class="layui-form"  method="post" id="myForm" action="/admin/app/">
            <%--<input type="hidden" name="currentUrl" id="currentUrl" value="">--%>
            <table class="layui-table">
                <colgroup>
                    <col width="50">
                    <col width="100">
                    <col width="150">
                    <col width="150">
                    <col width="200">
                    <col width="150">
                </colgroup>
                <thead>
                <tr>
                    <th>id</th>
                    <th>应用名称</th>
                    <th>参数名称</th>
                    <th>参数取值</th>
                    <th>参数使用说明</th>
                    <th>参数状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${appList}" var="m" varStatus="status">
                    <tr>
                        <td>
                                ${status.count}
                        </td>
                            <%--<c:choose>--%>
                                <%--<c:when test="${a.articleStatus == 1}">--%>
                                    <%--<a href="/admin/article?status=1">--%>
                                        <%--<span style="color:#5FB878;">已发布</span>--%>
                                    <%--</a>--%>
                                <%--</c:when>--%>
                                <%--<c:otherwise>--%>
                                    <%--<a href="/admin/article?status=0">--%>
                                        <%--<span style="color:#FF5722;">草稿</span>--%>
                                    <%--</a>--%>
                                <%--</c:otherwise>--%>
                            <%--</c:choose>--%>

                        <td>
                                <%--<a title="${m.appName}" href="/admin/user/edit/${m.appId}" target="_blank">--%>
                                ${m.appName}
                                <%--</a>--%>
                        </td>
                        <td>
                                <%--<a href="/app/${m.appId}" target="_blank">--%>
                                ${m.csName}
                                <%--</a>--%>
                        </td>
                        <td>
                                <%--<a href="/app/${m.appId}" target="_blank">--%>
                                ${m.csValue}
                                <%--</a>--%>
                        </td>
                        <td>
                                <%--<a href="/app/${m.appId}" target="_blank">--%>
                                ${m.csBeizhu}
                                <%--</a>--%>
                        </td>
                        <td>
                                <%--<a href="/app/${a.appId}" target="_blank">--%>
                                ${m.csStatus}
                                <%--</a>--%>
                        </td>
                        <td>
                            <a href="/admin/app/edit/${m.appId}" class="layui-btn layui-btn-mini">编辑</a>
                            <a href="/admin/app/delete/${m.appId}" class="layui-btn layui-btn-danger layui-btn-mini" onclick="return confirmDelete()">删除</a>
                        </td>

                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </form>
        <%@ include file="../Public/paging.jsp" %>
    </div>

</rapid:override>
<rapid:override name="footer-script">
    <script></script>
</rapid:override>
<%@ include file="../Public/framework.jsp" %>
